/**
 * @File name: os/config/os_api.c
 * @Synopsis:
 * @Author: xing.dai@aliyun.com
 * @Version: 0.0.1
 * @Date: 2018-08-13 21:22
 */

#include "os.h"
#include "types.h"

unsigned int os_critical_cnt;

void sleep_tick(uint32 tick)
{
    OS_ERR	err;
        OSTimeDly(tick, OS_OPT_TIME_HMSM_STRICT, &err);

}

void sleep_ms(uint32 ms)
{
	OS_ERR err;

	OSTimeDlyHMSM(0, 0, 0, ms, OS_OPT_TIME_HMSM_STRICT, &err);
}
